import request from '@/utils/request'

const api_name = '/sta/service/statistics'
export default {
  // 生成统计 
  createStatistics(day) {
    return request({
      url: `${api_name}/registerCount/${day}`,
      method: 'post'
    })
  },
  // 获取表中的数据 
  getChartData(searchObj) {
    return request({
      url: `${api_name}/getChartData/${searchObj.type}/${searchObj.begin}/${searchObj.end}`,
      method: 'get'
    })
  }
}